package com.techstar.api.pojo.city;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.joda.time.DateTime;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.DistrictSectionFlowId;
import com.techstar.common.jackson.DateTimeDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 行政区重点路段流量
 * @date 2021年6月25日
 *
 */
@Getter
@Setter
@Entity
@ToString
@Table(name = "district_section_flow")
@IdClass(DistrictSectionFlowId.class)
@org.hibernate.annotations.Table(appliesTo = "district_section_flow",comment="pord-2-行政区路段流量排名")
public class DistrictSectionFlow {
	@Column(columnDefinition="varchar(100) COMMENT '地磁编码'")
	private String magnetCode;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '路段名称'")
	private String sectionName;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '行政区标识'")
	private String distId;
	@Column(columnDefinition="varchar(100) COMMENT '行政区名称'")
	private String distName;
	@JsonDeserialize(using = DateTimeDeserializer.class)
	@Column(columnDefinition="datetime(0) COMMENT '统计时间'")
	private DateTime startTime;
	@Column(columnDefinition="varchar(100) COMMENT '时间间隔标识'")
	private String internalId;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量'")
	private String pcuValume;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量同比'")
	private String pcuValumeCsy;
	@Column(columnDefinition="varchar(100) COMMENT '合计PCU车流量环比'")
	private String pcuValumeCsm;
}
